-- GENERATED SPELL FOR [Ancient Conservator] --


function spell0_33203(pUnit, Event) --@Conservator\'s Grip,Self--
pUnit:FullCastSpellOnTarget(62532,pUnit)
pUnit:RegisterEvent('Sorts_33203', 5000, 1)
end

function spell1_33203(pUnit, Event) --@Nature\'s Fury,n/a--
pUnit:FullCastSpellOnTarget(62589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33203', 10000, 1)
end

function spell2_33203(pUnit, Event) --@Nature\'s Fury,n/a--
pUnit:FullCastSpellOnTarget(63571,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33203', 10000, 1)
end

function Sorts_33203(pUnit, Event)
local choix_sorts_33203 = math.random(0, 2)
if choix_sorts_33203 == 0 then
pUnit:RegisterEvent('spell0_33203', 1, 1)
end
if choix_sorts_33203 == 1 then
pUnit:RegisterEvent('spell1_33203', 1, 1)
end
if choix_sorts_33203 == 2 then
pUnit:RegisterEvent('spell2_33203', 1, 1)
end
end

function mob33203_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33203', math.random(1500, 3000), 1)
end

function mob33203_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33203_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33203_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33203, 1, 'mob33203_Action')
RegisterUnitEvent(33203, 2, 'mob33203_Leave')
RegisterUnitEvent(33203, 3, 'mob33203_Kill')
RegisterUnitEvent(33203, 4, 'mob33203_Die')
